//
//  MineCell.m
//  Everest
//
//  Created by 李其昌 on 14/12/17.
//  Copyright (c) 2014年 ThreeL. All rights reserved.
//

#import "MineCell.h"

@implementation MineCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.contentView.backgroundColor = [UIColor colorWithRed:255 / 255.0 green:250 / 255.0 blue:240 / 255.0  alpha:1.0];
        
        self.myBackLabel = [[UILabel alloc] init];
        self.myBackLabel.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.myBackLabel];
        [_myBackLabel release];
        
        self.myImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        self.myLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.myBackLabel.frame = CGRectMake(0, 5, self.contentView.bounds.size.width, self.contentView.bounds.size.height - 10);
    
    self.myImageView.frame = CGRectMake(15, self.contentView.bounds.size.height / 6, 32, 32);
    
    self.myLabel.frame = CGRectMake(self.contentView.bounds.size.width / 8 + 10, self.contentView.bounds.size.height / 6, self.contentView.bounds.size.width, 32);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
